package com.atguigu.spzx.manager.service;

import com.atguigu.spzx.model.entity.base.ProductUnit;
import com.atguigu.spzx.model.entity.product.ProductSpec;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * ClassName: ProductSpecService
 * Package:
 * Description:
 *
 * @Author:xiaohei
 * @Create 2024/5/20 13:16
 * Version 1.0
 */
public interface ProductSpecService {
    //列表
    PageInfo<ProductSpec> findByPage(Integer page, Integer limit);

    //添加
    void save(ProductSpec productSpec);

    //修改
    void updateById(ProductSpec productSpec);

    //删除
    void deleteById(Long id);

    //加载商品单元数据
    List<ProductUnit> findAll();

}
